import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Login from '@/components/Login'//登录
import Register from '@/components/Register'//注册
import School from '@/components/School'//恋爱学堂
import My from '@/components/My'//我的
import Me from '@/components/Me'//我的
import user_detail from '@/components/user_detail'
import Upload from '@/components/Upload'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/school',
      name: 'School',
      component: School
    },
    {
      path: '/my',
      name: 'My',
      component: My
    },
    {
      path: '/user_detail',
      name: 'User_detail',
      component: user_detail
    },
    {
      path: '/me',
      name: 'Me',
      component: Me
    },
    {
      path: '/upload',
      name: 'Upload',
      component: Upload
    },
  ]
})
